package com.ford.trade.service.impl;

import com.ford.trade.entity.Fenxi;
import com.ford.trade.repository.FenxiRepository;
import com.ford.trade.service.FenxiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: ford
 * @date: 2022/4/25 20:49
 */
@Service
public class FenxiServiceImpl implements FenxiService {
    @Resource
    private FenxiRepository fenxiRepository;

    @Override
    public void save(Fenxi fenxi) {
        fenxiRepository.save(fenxi);
    }

    @Override
    public Fenxi findByIndexId(Long indexId) {
       return fenxiRepository.findByIndexId(indexId);
    }
}
